if __name__ == "__main__":
    # 运算符计算
    a,b = 10,15
    print("+",a+b)
    print("-",a-b)
    print("*",a*b)
    print("/",a/b)
    print("//",a//b)
    print("**",a**b)
    # python中的逻辑运算符
    # 如果是 and,a and y 如果a是false 则返回false 如果a是true 则返回y的内容
    print("a and b:",a and b)
    # 给a重新赋值
    a = 0
    print("a and b:",a and b)
    # a or b 如果a为false 返回b的值 如果 a为true 则返回a的值
    print("a and b:",a or b)
    a =10
    print("a and b:",a or b)
    # 判断 in
    l = list((1,2,3,4,5))
    if(1 in l):
        print("1在l中")
    # is判断 is主要是判断是否是同一个对象
    c,d = 257,257
    print("c is d 的的结果为",c is d)
    # string
    s1,s2 = "sdd","sdd"
    s3 =s1
    print("s1 is s2的结果为:",s1 is s2)
    print("s1 is s3的结果为:",s1 is s3,end=",")
    # list
    list1 = [1,2,3,4,5]
    list2 = list((1,2,3,4,5))
    print("list1 is list2的结果为:",list1 is list2)
    # tuple
    t1 = (1,2,3,4,5)
    t2 = tuple((1,2,3,4,5))
    print("t1 is t2的结果为:", t1 is t2)
    # set 测试
    s1 = {1, 2, 3, 4, 5}
    s2 = {1,2,3,4,5}
    print("s1 is s2:", s1 is s2)
    # dic
    d1 = {"name": "Alice",
    "age": 25,
    "city": "New York"}
    d2 = {"name": "Alice",
    "age": 25,
    "city": "New York"}
    print("d1 is d2:",d1 is d2)

